package com.jzo2o.customer.controller.agency;

import com.jzo2o.customer.model.dto.request.AgencyCertificationAuditAddReqDTO;
import com.jzo2o.customer.service.IAgencyCertificationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController("AgencyCertificationAuditController")
@RequestMapping("/agency/agency-certification-audit")
@Api(tags = "机构端 - 机构认证相关接口")
@RequiredArgsConstructor
public class AgencyCertificationAuditController {
    private final IAgencyCertificationService agencyCertificationService;


    @PostMapping
    @ApiOperation("机构提交认证相关接口")
    public void AgencyCertificationAudit(@RequestBody AgencyCertificationAuditAddReqDTO agencyCertificationAuditAddReqDTO) {
        agencyCertificationService.addAgencyCertification(agencyCertificationAuditAddReqDTO);
    }


    // @GetMapping("/rejectReason")
    // @ApiOperation("重新提交认证")
    // public void rejectReason(@RequestBody AgencyCertificationAuditAddReqDTO agencyCertificationAuditAddReqDTO) {
    //     agencyCertificationService.rejectReason(agencyCertificationAuditAddReqDTO);
    // }


}
